using System.Collections.Generic;
using Provausio.Common.Objects;
using TrainingManagement.api.Models.Data.CRUD;
using TrainingManagement.api.Models.Data.CRUD.Location;

namespace TrainingManagement.api.Models.BusinessLogic.Location
{
    public class LocationSelectOperation : BusinessOperation<int?, List<BusinessObjects.Location>>
    {
        readonly LocationSelectDataSource _locationSelect = new LocationSelectDataSource();

        public override List<BusinessObjects.Location> Run(int? input)
        {
            return _locationSelect.Execute(input);
        }
    }
}